frame

public Optional<Frame> frame()

Returns an Optional that contains the Frame instance initiated this download or an empty Optional if the instance initiated this download was closed and not available anymore.

If this download was initiated by clicking the Download button in the PDF Viewer loaded in the main frame or an IFRAME, then this method returns an Optional that contains the instance of the main Frame.

Since

7.2